package com.sy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;

public class Announcement {
    private  Integer id;
//    公告标题
    private String title;
//    发布时间
 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date pushTime;
//    公告内容
    private String notice ;

//    发布者id
    private Integer pushUserId;

//    发布者姓名
    private  String pushUserName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getPushTime() {
        return pushTime;
    }

    public void setPushTime(Date pushTime) {
        this.pushTime = pushTime;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public Integer getPushUserId() {
        return pushUserId;
    }

    public void setPushUserId(Integer pushUserId) {
        this.pushUserId = pushUserId;
    }

    public String getPushUserName() {
        return pushUserName;
    }

    public void setPushUserName(String pushUserName) {
        this.pushUserName = pushUserName;
    }

    @Override
    public String toString() {
        return "Announcement{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", pushTime=" + pushTime +
                ", notice='" + notice + '\'' +
                ", pushUserId=" + pushUserId +
                ", pushUserName='" + pushUserName + '\'' +
                '}';
    }
}
